<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/footer.css" type="text/css" rel="stylesheet"/>
<style>
	li{float:left; list-style:none;}
</style>
<script type="text/javascript">
//	window.location.href="sellerAction.action";
	/* $(function(){
		window.location.href="sellerAction.action";
	}); */
	

</script>
<%-- <s:if test=" <s:property value="totalPages"/>== null">
</s:if> --%>
<%-- 	<s:action name="sellerAction" executeResult="true" namespace="/" />
 --%>
 </head>
<body>
<div>
<table>
	<s:iterator value="list" var="s" status="num">
	<ul >
		<li> </li>
		<li style="margin-left:100px;margin-top:20px;" >
			<a href="${pageContext.request.contextPath}/foodAction.action?sId=<s:property value="#s.id"/>"> <span>${s.sellername}</span><br>
						 <img src="<%=basePath %>images/pic/t_${num.index+1}.png" width="180px" height="150px">
			</a>
		</li>
		<li> </li>
			<%-- <td align="center" width="150px" height="150px"><span>${d.sellername}</span><br><a href="${pageContext.request.contextPath}/sellerAction.action?did=<s:property value="#d.id"/>">
			<img src="<%=basePath %>images/t.jpg" width="150px" height="150px">
			</a>
			</td> --%>
	</ul> 
<%-- 	<tr>
		<tr width="500px">
			<td align="center" width="150px"><s:property value="#d.sellername"/></td>
		</tr>
		<tr>
			<td align="center" width="150px" height="150px"><a href="${pageContext.request.contextPath}/sellerAction.action?did=<s:property value="#d.id"/>"><img src="<%=basePath %>images/timg.jpg"></a></td>
			<td align="center" width="150px"><s:property value="#d.basepath"/></td>
		</tr>
	<tr>
 --%>	</s:iterator>
</table>
</div>
<div style="text-align:center;height:580px">
</div>
<div id="footer">
<table border="0" cellspacing="0" cellpadding="0"  width="900px">
<tr>
<td>
<td align="right">
   <span>第<s:property value="pageNo"/>/<s:property value="totalPages"/>页</span>&nbsp;&nbsp;
   <span>总记录数：<s:property value="totalRecords"/>&nbsp;&nbsp;每页显示:<s:property value="pageSize"/></span>&nbsp;&nbsp;
   <span>
   <s:if test="pageNo != 1">
       <a href="${pageContext.request.contextPath }/sellerAction.action?pageNo=1">[首页]</a>&nbsp;&nbsp;
       <a href="${pageContext.request.contextPath }/sellerAction.action?pageNo=<s:property value="pageNo-1"/>">[上一页]</a>&nbsp;&nbsp;
   </s:if>
   <s:if test="pageNo != totalPages">
       <a href="${pageContext.request.contextPath }/sellerAction.action?pageNo=<s:property value="pageNo+1"/>">[下一页]</a>&nbsp;&nbsp;
       <a href="${pageContext.request.contextPath }/sellerAction.action?pageNo=<s:property value="totalPages"/>">[尾页]</a>&nbsp;&nbsp;
   </s:if>
   </span>
</td>
</tr>
</table>
</div>
</body>
</html>